package com.xli.mis.tablestruct.entity.dto;

import com.xli.dto.search.SearchDTO;
import com.xli.dto.search.type.QueryType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;


@Data
@EqualsAndHashCode(callSuper = true)
public class TableStructSearchDTO extends SearchDTO {

    @Serial
    private static final long serialVersionUID = 847989148603094768L;

    @Schema(description = "SQL表主键")
    @QueryType(value = QueryType.Type.EQ,field = "table_id")
    private String tableId;

    @Schema(description = "英文字段名")
    @QueryType(value = QueryType.Type.LIKE,field = "field_name_en")
    private String fieldNameEn;

    @Schema(description = "中文字段名")
    @QueryType(value = QueryType.Type.LIKE,field = "field_name_cn")
    private String fieldNameCn;


}
